<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>文章库</title>
    <meta name="keywords" content="课程学习问答系统">
    <meta name="description" content="课程学习问答系统">
    <script src="../static/js/jquery/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="../static/layui/layui.js" type="text/javascript"></script>
    <script src="../static/js/index/index.js" type="text/javascript"></script>
    <script src="../static/js/index/freezeheader.js" type="text/javascript"></script>
    <script src="../static/layui/lay/modules/layer.js" type="text/javascript"></script>
    <link rel="stylesheet" href="../static/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="../static/layui/css/modules/layer/default/layer.css"/>
    <link rel="stylesheet" href="../static/css/global.css"/>

</head>
<body>
<%@ include file="header.jsp" %>
<div class="layui-container container">

    <div class="layui-row layui-col-space20">
        <div class="layui-col">
            <div>
                  <span class="layui-breadcrumb">
              <a href="index.html">首页</a>
              <a><cite>文章库</cite></a>
            </span>
                <hr class="layui-bg-red">

                <%--<figure><img lay-src="../static/images/01.jpg"></figure>--%>
                <ul>
                    <c:forEach items="${passages}" var="passage">
                        <li>
                            <div class="article-list" style="padding-top:10px;">
                                <h3>
                                    <a href="/teacher/articleDetails/${passage.passageId}">${passage.passageTitle}</a>
                                </h3>
                                <h4>
                                    作者：${passage.passageAuthor}
                                </h4>
                                <p>${passage.passageContent}</p>

                                <p class="autor">
                                    <span class="lm f_l"><a href="#">文章</a></span>
                                    <span class="dtime f_l"><fmt:formatDate value="${passage.passageTime}"
                                                                            pattern="yyyy-MM-dd HH:mm:ss"/></span>
                                </p>
                            </div>

                        </li>
                    </c:forEach>
                </ul>
            </div>
            <!--分页-->
            <%--<div id="page"></div>--%>
        </div>

    </div>
</div>
<%@ include file="footer.jsp" %>
</html>
